int init_multiplayer(char *netaddress=0)
Parameter | Type | Description |
---|---|---|
netaddress | char * |
IP address of server when starting a client. NULL for starting a server. |
Returns TRUE if initialization is OK (TCP/IP installed), FALSE if unable to initialize multiplayer.
This function starts multiplayer mode by initializing TCP/IP.
It must be called before creating servers or connecting to a game.
It should be called with netaddress=NULL for creating a server.
When creating a client, set netaddress to the server address from where
the games will be enumerated from.